package com.hongdee.scm.interior.service;

import com.hongdee.scm.interior.entity.TScmInterior;

import java.util.List;
import java.util.Map;

/**
 * 名  称:ITScmInteriorService
 * 类  型:Interface
 * 描  述:
 * 路  径:com.hongdee.scm.interior.service
 * 作  者: 术洪超
 * 日  期:2017-05-14 11:03
 */
public interface ITScmInteriorService {

    /**
     * @param uid           登录用户 ID
     * @param start         起始记录
     * @param limit         页面大小
     * @param interiorCode  内饰编码
     * @param interiorName  内饰名称
     * @param carSeriesId   车系id
     * @return Map
     * @throws Exception
     * @desc 通过 JDBCDao分页查询
     * @author 术洪超
     */
    public Map page(String start, String limit, String interiorCode, String interiorName, String carSeriesId, String uid) throws Exception;

    /**
     * @param data 要保存的实体
     * @return Map
     * @throws Exception
     * @desc 保存添加或者修改的实体内容，通过主键判断
     * @author 术洪超
     */
    public TScmInterior save(TScmInterior data, String uid) throws Exception;

    /**
     * @param uid 登录用户
     * @param id  主键 ID
     * @return ResultEntity
     * @throws Exception
     * @desc 查询详情
     * @author 术洪超
     */
    public Map info(String id, String uid) throws Exception;

    /**
     * @return List
     * @throws Exception
     * @desc 仓库下拉菜单
     * @author 术洪超
     */
    public List<Map> combo(String uid, String carSeriesId) throws Exception;

    /**
     * @return List
     * @throws Exception
     * @desc 构建车系树
     * @author 术洪超
     */
    public List buildTree(String allSeries) throws Exception;

    /**
     * @param carSeriesId
     * @return
     */
    List<Map> buildTreeNodeList(String carSeriesId) throws Exception;

    public void interiorCancel(String[] interiorIds,String uid) throws Exception;


}
